package ch.usi.inf.pf2.node;

import ch.usi.inf.pf2.Constant;
import ch.usi.inf.pf2.Division;
import junit.framework.TestCase;

/**
 * A DivisionTest ,it tests if Division class works or not.
 * 
 * @author Elham.menzer@gmail.com
 */

public class DivisionTest extends TestCase {

	public void testEvaluate(){
		Division divide1 = new Division(new Constant(4), new Constant(2));
		divide1.evaluate();
		assertEquals(2.0,divide1.evaluate());
		
	}

}

